package com.powernode.controller;

import com.powernode.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: powernode
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("test")
    public String testRpc(Integer goodsId, Integer count) {
        return testService.testBuy(goodsId, count);
    }

    public static void main(String[] args) {

        int i = 4321 & 15;
        System.out.println(i);
    }
}
